package Twice.day05;

/**
 * @Author: lya
 * @Description: 本类的作用描述:班级实体类
 * @CreateDate: 2019/8/27
 * @Version: 1.0
 */
public class Clazz {
    //定义属性
    private Integer id;
    private String clazzName;
    private Integer capacity;//容量
    public Clazz(){

    }

    public Clazz(Integer id, String clazzName, Integer capacity) {
        this.id = id;
        this.clazzName = clazzName;
        this.capacity = capacity;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClazzName() {
        return clazzName;
    }

    public void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Clazz{");
        sb.append("id=").append(id);
        sb.append(", clazzName='").append(clazzName).append('\'');
        sb.append(", capacity=").append(capacity);
        sb.append('}');
        return sb.toString();
    }
}
